<div class="header">
  <back-Btn></back-Btn>
  项目退款
</div>
<div class="container finance task-review">
  <div class="list f_sk">
    <div user-info no="TaskReview.result.fileNo" depname="TaskReview.result.departmentName"
      date="TaskReview.result.applyDate" username="TaskReview.result.userName"></div>
    <div class="section">
      <div class="list-item flex">
        <div class="c9 w40">项目编号</div>
        <div class="w60">{{ TaskReview.result.projectNo }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">项目名称</div>
        <div class="w60" relative-module="project_store" module-no="{{ TaskReview.result.projectNo }}">
          {{ TaskReview.result.projectName }}
        </div>
      </div>
      <div class="list-item" ng-show="TaskReview.result.gatheringNo ">
        <div class="item-label">项目收款</div>
        <div class="flow-content" relative-module="project_gathering" module-no="{{ TaskReview.result.gatheringNo }}">
          {{ TaskReview.result.gatheringNo }}
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">退回到</div>
        <div class="w60" ng-switch="TaskReview.result.refundTarget">
          <div ng-switch-when="1">款项来源人</div>
          <div ng-switch-when="2">项目余额</div>
          <div ng-switch-when="3">指定收款人</div>
          <div ng-switch-when="4">农民工工资账户余额</div>
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">款项类别</div>
        <div class="w60" ng-switch="TaskReview.result.refundType">
          <div ng-switch-when="1">工程款</div>
          <div ng-switch-when="2">垫付款</div>
          <div ng-switch-when="3">保证金</div>
          <div ng-switch-when="4">押金</div>
          <div ng-switch-when="5">缴纳</div>
          <div ng-switch-when="6">成本</div>
          <div ng-switch-when="7">收入</div>
          <div ng-switch-when="8">预借款</div>
          <div ng-switch-when="10">已付款</div>
          <div ng-switch-when="11">结算款</div>
          <div ng-switch-when="12">内部借款</div>
          <div ng-switch-when="14">农民工工资保证金</div>
        </div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.canRefund">
        <div class="w40 c9">当前可退</div>
        <div class="w60">{{ TaskReview.result.canRefund | NBFmt }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.shouldRefund">
        <div class="w40 c9">当前应退</div>
        <div class="w60">{{ TaskReview.result.shouldRefund | NBFmt }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.canPay">
        <div class="w40 c9">当前余额</div>
        <div class="w60">{{ TaskReview.result.canPay | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">退款金额</div>
        <div class="w60">{{ TaskReview.result.amount | NBFmt }}</div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">金额大写</div>
        <div class="w60">{{ TaskReview.result.amountInWorld }}</div>
      </div>
      <div class="list-item flex" ng-hide="TaskReview.result.completion==0">
        <div class="w40 c9">退回状态</div>
        <div class="w60" ng-switch="TaskReview.result.completion">
          <div ng-switch-when="0">未退回</div>
          <div ng-switch-when="1">已退回</div>
        </div>
      </div>
      <div class="list-item flex">
        <div class="w40 c9">退款事由</div>
        <div class="w60">{{ TaskReview.result.refundReason }}</div>
      </div>
      <div class="list-item flex" ng-show="TaskReview.result.remark">
        <div class="w40 c9">备注</div>
        <div class="w60">{{ TaskReview.result.remark }}</div>
      </div>
      <div class="list table-list" ng-show="TaskReview.result.details&&TaskReview.result.details.length>0">
        <div class="info-title">退款对应的关联记录</div>
        <div class="table-item" ng-repeat="item in TaskReview.result.details">
          <div class="list-item">
            <div class="item-label">编号</div>
            <div class="flow-content" relative-module="{{ item.refundKey }}" module-no="{{ item.refundNo }}">
              {{ item.refundNo }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">款项小类</div>
            <div class="flow-content">{{ item.refundSubType }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">日期</div>
            <div class="flow-content">{{ item.refundDate|dateFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">金额</div>
            <div class="flow-content">{{ item.refundAmount | NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">本次退回金额</div>
            <div class="flow-content">{{ item.returnAmount | NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">事由</div>
            <div class="flow-content">{{ item.refundRemark }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list"
        ng-show="TaskReview.result.payPerson||TaskReview.result.payAccount||TaskReview.result.payBank">
        <div class="info-title">款项来源人</div>
        <div class="table-item">
          <div class="list-item">
            <div class="item-label">来源人</div>
            <div class="flow-content">{{ TaskReview.result.payPerson }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">来源人账号</div>
            <div class="flow-content">{{ TaskReview.result.payAccount }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">来源人开户行</div>
            <div class="flow-content">{{ TaskReview.result.payBank }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list"
        ng-show="TaskReview.result.receivePerson||TaskReview.result.receiveAccount||TaskReview.result.receiveBank">
        <div class="info-title">收款人</div>
        <div class="table-item">
          <div class="list-item">
            <div class="item-label">收款人</div>
            <div class="flow-content">
              {{ TaskReview.result.receivePerson }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">收款人账号</div>
            <div class="flow-content">
              {{ TaskReview.result.receiveAccount }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">收款人开户行</div>
            <div class="flow-content">{{ TaskReview.result.receiveBank }}</div>
          </div>
        </div>
      </div>
      <div class="list table-list" ng-show="TaskReview.result.invoices&&TaskReview.result.invoices.length>0">
        <div class="info-title">本次需抵税的进项发票</div>
        <div class="table-item" ng-repeat="item in TaskReview.result.invoices">
          <div class="list-item" ng-show="item.invoiceNo ">
            <div class="item-label">编号</div>
            <div class="flow-content" relative-module="Xm_InputInvoice" module-no="{{ item.invoiceNo  }}">
              {{ item.invoiceNo  }}
            </div>
          </div>
          <div class="list-item">
            <div class="item-label">开票单位</div>
            <div class="flow-content">{{ item.makeInvoiceCompany }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">税额总计</div>
            <div class="flow-content">{{ item.taxAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">已抵扣金额</div>
            <div class="flow-content">{{ item.hasDecuctAmount|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">可抵扣金额</div>
            <div class="flow-content">{{ (item.taxAmount-item.hasDecuctAmount)|NBFmt }}</div>
          </div>
          <div class="list-item">
            <div class="item-label">本次抵扣金额</div>
            <div class="flow-content">{{ item.decuctAmount|NBFmt }}</div>
          </div>
        </div>
      </div>
      <!-- 自定义字段 -->
      <div checkuser-define field-map="TaskReview.result.customFields"></div>
      <!-- 附件 -->
      <div class="file-upload" file-list checked="true" file-data="TaskReview.result.attachment"></div>
    </div>
    <div refund-list form-key="formKey" data="TaskReview.result"></div>
    <!-- 审查日志 -->
    <div log-list taskid="process_id"></div>
  </div>
</div>